js で自身の呼び出し元を調べる
スタックトレースから
エラー作って
Error.prototype.stack
を見る
code:stack.js
const err = new Error();
console.log(err.stack);
#JavaScript